{{include file="header2.html"}}
{{include file="menu2.html"}}
		<div class="web_rigth_main" style="background-color:white">
			<!--网站主体内容 S-->
		<div class="content_title_bar">
			<span>&diams;个人信息修改</span>
		</div>
		<form method="post" enctype="multipart/form-data">
			<input type="hidden" name="id" value="{{$member.id}}">					<!--修改数据ID-->
		<table class="content_table">
			<tr>
				<td>学号：</td>
				<td><input type="text" name="number" autocomplete="off" value="{{if $result.number}}{{$result.number}}{{/if}}" readonly="readonly"></td>
			</tr>
			<tr>
				<td>姓名：</td>
				<td><input type="text" name="username" autocomplete="off" value="{{if $result.username}}{{$result.username}}{{/if}}" readonly="readonly"></td>
			</tr>
			<tr>
				<td>性别：</td>
				<td><input type="radio" name="sex" autocomplete="off" value="0" {{if $result.sex == '0'}}checked="checked"{{/if}}>男
				<input type="radio" name="sex" autocomplete="off" value="1" {{if $result.sex == '1'}}checked="checked"{{/if}}>女</td>
			</tr>
			<tr>
				<td>电话：</td>
				<td><input type="text" name="phone" autocomplete="off" value="{{if $result.phone}}{{$result.phone}}{{/if}}"></td>
			</tr>
			<tr>
				<td>邮箱：</td>
				<td><input type="text" name="email" autocomplete="off" value="{{if $result.email}}{{$result.email}}{{/if}}"></td>
			</tr>
			<tr>
				<td>政治面貌：</td>
				<td><input type="text" name="political" autocomplete="off" value="{{if $result.political}}{{$result.political}}{{/if}}"></td>
			</tr>

			<tr>
				<td>一级分类(毕业年份)：</td>
				<td>
					<div class="select_div" style="float:left;margin-left:10px;">
				    <select name="year" class="chosen" style="min-width:120px;">
				  		<option value="">--毕业年份-</option>
						{{foreach from=$year item=val key=key}}
							<option value="{{$key}}" name="year" {{if $key == $result.year}} selected = "selected" {{/if}}>{{$val.title}}</option>
						{{/foreach}}
				  	</select>
				</div>
				</td>
			</tr>
			<tr>
				<td>二级分类(专业)：</td>
				<td>
					<div class="select_div" style="float:left;margin-left:10px;">
<!-- 				    <select name="">
				        <option value="芝士">电信</option>
				        <option value="奶油">电子</option>
				    </select> -->
				    <select name="major" class="chosen" style="min-width:120px;">
				  		<option value="">--专业--</option>
						{{foreach from=$major item=val key=key}}
							<option value="{{$key}}" name="major" {{if $key == $result.major}} selected = "selected" {{/if}}>{{$val.title}}</option>
						{{/foreach}}
				  	</select>
				</div>
				</td>
			</tr>

		</table>
		<input type="button" name="submit" value="确认" style="margin:20px 0 0 280px" onclick="clickinfo()">
		</form>



			<!--网站主体内容 E-->
		</div>
	</div>
	<script type="text/javascript">
		//提交
		function clickinfo(){
		    var params = $("form").serialize();
		    $.post('{{"index.php?app=Info&act=modifyinfo2"|URL}}',params,function(result){
		        if(result.statusCode=='200'){
		        	ui.success(result.message);
		        	setTimeout(function(){
						var url = '{{"index.php?app=Info"|URL}}'; 
						document.location.href = url;//登录后跳转页面
		        	},1000);
		        }else if(result.statusCode=='300'){
		        	ui.error(result.message);
		        }	
		    },'json');
		};
	</script>
{{include file="footer2.html"}}